package com.company;

public class diwuti {
    public static void main(String[] args){
        int[][] a={{1,2,3,4,5,6,7,8},{1,2,3,4,5,6,7,8},{1,2,3,4,5,6,7,8},{1,2,3,4,5,6,7,8},{1,2,3,4,5,6,7,8},{1,2,3,4,5,6,7,8},{1,2,3,4,5,6,7,8},{1,2,3,4,5,6,7,8}};
        for(int i=0;i<8;i++) {
            for(int j=0;j< 8;j++) {
                if(a[i][j]==1||a[i][j]==8) {
                    System.out.println("座位坐标："+i+j);
                }

            }
        }
            }
        }